<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'${button.icon!}',plain:true"
onclick="QRcode_user_check()">
  ${button.name!}
</a>
<script type="text/javascript">
var QRcode_user_check = function() {
    var a = "";
    var $grid = $('#${gridId}');
    var rows = $grid.datagrid('getSelections');
    var num = rows.length;
    if (num == "0") {
      $.slideMsg("请至少选择一条记录！");
        return;
    }
    var vals = [];
    for (var i = 0; i < rows.length; i++) { //组成一个字符串，ID主键用逗号隔开
      vals.push(rows[i]['login_id']);
    }
  // 新开窗口生成脚本
  $.post('/QRcodeUserCheck'+"?login_id="+vals[0], {
    }, function(result) {
    if (result.success) {
      a = result.msg;
      }
    else{
      a = result.msg;
    }
    }, 'JSON');
    if (a == null || a == undefined || a == '') {
    }
    else{
      alert(a);
    }
    window.location.reload();
};
</script>